﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using nj4x;

namespace MT4
{
    public partial class TableRow : UserControl
    {
        public Strategy Strategy;

        public TableRow(Strategy Strategy, String Broker, String Account, Double Balance, Double Equity, String Currency)
        {
            InitializeComponent();
            this.Strategy = Strategy;
            this.broker.Text = Broker;
            this.account.Text = Account;
            this.balance.Text = Balance.ToString();
            this.equity.Text = Equity.ToString();
            this.currency.Text = Currency;
        }

        public void SetEquity(Double Equity) 
        { 
          this.equity.Text = Equity.ToString();
        }
    }
}
